{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### openwebui 强大的模型前端工具"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "\n",
    "#### 环境要求\n",
    "    版本要求：python >=3.11\n",
    "\n",
    "    pip install -U open-webui torch transformers (vllm)\n",
    "    \n",
    "#### 运行步骤\n",
    "\n",
    "    ollama serve\n",
    "    \n",
    "    新开一个终端\n",
    "    export HF_ENDPOINT=https://hf-mirror.com\n",
    "    export ENABLE_OLLAMA_API=True（默认，可选）\n",
    "    export OPENAI_API_BASE_URL=http://127.0.0.1:11434/v1\n",
    "    export DEFAULT_MODELS=\"模型路径\"（可选）\n",
    "    \n",
    "    open-webui serve"
   ]
  }
 ],
 "metadata": {
  "language_info": {
   "name": "python"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
